import request from "@/api/myRequest.js"
// 地址列表
function addressList(){
	 return request({
		 url:"/lejuAdmin/companyAddress/addressList",
		 method:"GET",
		 
		
		 
	 })
 }
 // 发货默认
 function setSendOne(data){
 	 return request({
 		 url:"/lejuAdmin/companyAddress/setSendOne",
 		 method:"POST",
 		 data
 		
 		 
 	 })
  }
  // 收货默认
  function setReceiveOne(data){
  	 return request({
  		 url:"/lejuAdmin/companyAddress/setReceiveOne",
  		 method:"POST",
  		 data
  		
  		 
  	 })
   }
   // 删除地址
   function companyAddress(id){
   	 return request({
   		 url:`/lejuAdmin/companyAddress/${id}`,
   		 method:"DELETE",
   		
   		
   		 
   	 })
    }
	// 新增地址
	function save(data){
		 return request({
			 url:"/lejuAdmin/companyAddress/save",
			 method:"POST",
			 data
			
			 
		 })
	 }
	 // 更新地址
	 function update(data){
	 	 return request({
	 		 url:"/lejuAdmin/companyAddress/update",
	 		 method:"POST",
	 		 data
	 		
	 		 
	 	 })
	  }
 export{
	 addressList,
	 setSendOne,
	 setReceiveOne,
	 companyAddress,
	 save,
	 update
 }